package com.youthburin.rmp.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.youthburin.base.domain.BaseVO;

/**
 * The persistent class for the rmp_op_log database table.
 * 
 */
@Entity
@Table(name = "rmp_op_log")
public class RmpOpLog extends BaseVO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "LOG_ID", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.AUTO)
	private String logId;

	@Column(name = "BUSI_ID", length = 32)
	private String busiId;

	@Column(name = "BUSI_NAME", length = 64)
	private String busiName;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
	private Date createTime;

	@Column(name = "CREATER", length = 32)
	private String creater;

	@Column(name = "IP", length = 64)
	private String ip;

	@Column(name = "LOG_DESC", length = 400)
	private String logDesc;

	// bi-directional many-to-one association to RmpOpLogType
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "LOG_TYPE")
	private RmpOpLogType rmpOpLogType;

	// bi-directional many-to-one association to RmpOpLogBusiType
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "BUSI_TYPE")
	private RmpOpLogBusiType rmpOpLogBusiType;

	public RmpOpLog() {
	}

	public String getLogId() {
		return this.logId;
	}

	public void setLogId(String logId) {
		this.logId = logId;
	}

	public String getBusiId() {
		return this.busiId;
	}

	public void setBusiId(String busiId) {
		this.busiId = busiId;
	}

	public String getBusiName() {
		return this.busiName;
	}

	public void setBusiName(String busiName) {
		this.busiName = busiName;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreater() {
		return this.creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getLogDesc() {
		return this.logDesc;
	}

	public void setLogDesc(String logDesc) {
		this.logDesc = logDesc;
	}

	public RmpOpLogType getRmpOpLogType() {
		return this.rmpOpLogType;
	}

	public void setRmpOpLogType(RmpOpLogType rmpOpLogType) {
		this.rmpOpLogType = rmpOpLogType;
	}

	public RmpOpLogBusiType getRmpOpLogBusiType() {
		return this.rmpOpLogBusiType;
	}

	public void setRmpOpLogBusiType(RmpOpLogBusiType rmpOpLogBusiType) {
		this.rmpOpLogBusiType = rmpOpLogBusiType;
	}

}